"""
Project Name : api_automation_framework
File Name : image-png.py
Author : lldhsds
Date : 2024/12/29 13:09
Description: /image/png, Return a simple PNG image.
"""

import requests

def image_png() -> None:
    """
    /image/png, Return a simple PNG image.
    """
    url = "https://httpbin.org/image/png"
    headers = {'Accept': 'image/png'}
    response = requests.get(url, headers=headers)
    print(response.status_code)
    print(response.content)
    print(response.headers)

image_png()
